﻿using System;

namespace DesignPattern.com.mediator {
    public class ColleagueA:Colleague {
        public ColleagueA(Mediator mediator) : base(mediator){ }
        public override void request(string msg){
            Console.WriteLine("==向ColleagueA.request发送请求 msg="+msg);
        }

        /// <summary>
        /// 执行动作
        /// </summary>
        public void action(){
            //执行动作后通知其他colleague
            mediator.sendMsg(this,"colleagueA执行动作了");
        }
    }
}